// 项目管理api
import api from "../utils/http";
export default {
    // 获取/查询投标
    searchBit(data) {
        return api({
            url: '/project/select_bid',
            method: 'post',
            data: {
                ...data
            }
        })
    },

    //addBid页面

    // 获取/搜索投标成员
    searchBitMember(data) {
        return api({
            url: '/project/select_bid_member',
            method: 'get',
            params: {
                bid_project_id: data
            }
        })
    },

    // 查询员工
    searchEmp(name, buMen) {
        return api({
            url: '/project/select_emp',
            method: 'get',
            params: {
                name: name,
                buMen: buMen
            }
        })
    },

    // 获取/搜索计划
    searchBitPlan(data) {
        return api({
            url: '/project/select_plan',
            method: 'get',
            params: {
                bid_project_id: data
            }
        })
    },

    // 创建计划
    addPlan(data) {
        return api({
            url: '/project/insert_plan',
            method: 'post',
            data: {
                workPlan: data
            }
        })
    },

    // 新增投标
    addBit(data) {
        return api({
            url: '/project/insert_bid',
            method: 'post',
            data: {
                data
            }
        })
    },

    //editBid页面

    // 编辑投标
    editBid(data) {
        return api({
            url: '/project/update_information',
            method: 'post',
            data: {
                ...data
            }
        })
    },

}